//
//  ECNewListViewController.h
//  Edu_iOS2018
//
//  Created by apple on 2018/1/26.
//  Copyright © 2018年 yanyan. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ECListModel,CourseModel;

typedef void(^tableViewDidScrollBlock)(CGFloat contentOffsetY);

@protocol ECUCatalogControllerDelegate <NSObject>
@required
-(void)didSelectOfCellWithModel:(ECListModel *)model;
-(void)didSelectOfCellWithPaperModel:(ECListModel *)model;

@end

@interface ECNewListViewController : CYUIVC_base
///课程是否过期 默认为 no
@property(nonatomic,assign)BOOL deadline;
@property(nonatomic,assign)NSInteger isMember;//默认为2，标识还没有设置；1，标识是学员；0表示不是学员，没有加入学习；

///课程model
@property (nonatomic, strong) CourseModel *courseModel;

@property (nonatomic, readonly) UITableView *tableView;

@property (nonatomic, weak) id <ECUCatalogControllerDelegate>delegate;

@property (nonatomic, copy) tableViewDidScrollBlock scrollBlock;
- (void)tableViewDidScroll:(tableViewDidScrollBlock)scrollBlock;

@end
